function addNav() {
    let data = {
        name: $("#name").val(),
        href: $("#href").val(),
        token:$.cookie("token")
    };
    let result = myAjax('/back/nav/navAdd','post',data);
    console.log(result);
    if (result.count === 1) {
        alert("添加成功!!");
        $("#right").load('/back/nav/navManage.html');
    }else{
        alert("添加失败！")
    }
}

function cancelAdd() {
    $("#right").load('/back/nav/navManage.html');
}